package com.project.springboot.controller;

import com.project.springboot.dao.UserDao;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Description：书籍Controller
 * Created by 朱正磊 on 2019/3/11 0011 下午 3:18
 */
@RestController
public class BookController {

    @Resource
    private UserDao userDao;

    @GetMapping("/book/home")
    public String home() {
        System.out.println("/book/home url is invoke");
        return "bookhome";
    }

    @GetMapping("/book/show")
    public String show(@RequestParam("id") String id) {
        System.out.println("/book/show url is invoke");
        return "book" + id;
    }

}
